package com.xinhe.web.reposity;

import com.xinhe.web.entity.GoodsType;
import com.xinhe.web.response.GoodsTypeView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface GoodsTypeRepository  extends JpaRepository<GoodsType, Long> {
    @Query(value = "select * from tb_goods_type", nativeQuery = true)
    List<GoodsTypeView> pageGoodsType();
}
